package com.ithiem.dubbo.mappers;

import com.itheima.model.domain.Questions;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * (tb_questions)数据Mapper
 *
 * @author
 * @since 2022-06-22 20:01:46
 * @description
*/
public interface QuestionsMapper extends BaseMapper<Questions> {
    @Select("SELECT * FROM `tb_questions` where soul_id = #{id} ORDER BY number+0 ASC  ;")//number+0转换成数字比较
    List<Questions> listBySoulId(Long id);
}
